package com.lhkj.ct.meta.modules.psychology.model.dto;

import com.lhkj.ct.meta.modules.psychology.model.entity.TblGaugeAnswer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.sql.Time;
import java.util.List;

/**
  * <p>
  *     描述：作答进度
  * </p>
  */
@Data
public class ProcessDto implements Serializable {

    @NotBlank(message = "分配记录编号不能为空")
    @ApiModelProperty(value = "报告id")
    private String rId;

    @NotEmpty(message = "答卷记录不能为空")
    @ApiModelProperty(value = "答卷记录", notes = "单选多选需要保存")
    private List<TblGaugeAnswer> answerRecords;

    @NotBlank(message = "答卷json不能为空")
    @ApiModelProperty(value = "答案json")
    private String answerJson;

    @ApiModelProperty(value = "计时", example = "00:00:00")
    private Time costTime;
}
